<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<script type="text/javascript">
$(function(){
	
	$("#searchBtn").click(function(){
		location.href="searchProductListByName.do?name="+$("#info").val()+"&category=${requestScope.category}";
	});
	
});
</script>


<input type="text" id="info" value="${requestScope.info }">
<input type="button" id="searchBtn" value="검색">

<table border="1" cellpadding="5">
<c:forEach items="${requestScope.list }" var="list">
<tr>
	<td><a href="getProductInfo.do?productId=${list.productId }">${list.productName }</a></td><td>${list.productMaker }</td><td>${list.productDate }</td><td>${list.productPrice }</td>
</tr>
</c:forEach>
</table>